import request from '@/config/axios'
/**
 * 分页查询供应商
 */
export const pageQuery = (params) => {
  return request.get({ url: '/material/supplier/page-query', params })
}

/**
 * 新增供应商
 */
export const create = (data) => {
  return request.post({ url: '/material/supplier/create', data })
}

/**
 * 更新供应商
 */
export const update = (data) => {
  return request.put({ url: '/material/supplier/update', data })
}

/**
 * 删除供应商
 */
export const deleted = (id) => {
  return request.delete({ url: '/material/supplier/deleted?id=' + id })
}

/**
 * 获取单个供应商
 */
export const singleGet = (id) => {
  return request.get({ url: '/material/supplier/single-get?id=' + id })
}

/**
 * 查询供应商精简信息
 */
export const simpleList = () => {
  return request.get({ url: '/material/supplier/simple-list' })
}
